/*******************************************************************************
 * Copyright (c) 2007 University of Oslo.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     University of Oslo - initial API and implementation
 *******************************************************************************/

package com.cea.papyrus.diagram.sequence.sedi.model.command.diagram;

import java.util.WeakHashMap;

/**
 * TODO Document class
 *  
 * @author frankd@ifi.uio.no
 */
public final class HintRegister {
	private static WeakHashMap<String, Object> 
		hintMap = new WeakHashMap<String, Object>();
	
	private HintRegister() {
		// private to disallow instantiation
	}
	
	public static void setHint(String tag, Object hint) {
		hintMap.put(tag, hint);
	}
	
	public static Object consumeHint(String tag) {
		return hintMap.remove(tag);
	}
	
	public static void removeHint(String tag) {
		hintMap.remove(tag);
	}
}
